﻿<phone:PhoneApplicationPage 
    x:Class="Win7RovMobileApp.ConfirmationScreen"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
    xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:toolkit="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls.Toolkit" 
    FontFamily="{StaticResource PhoneFontFamilyNormal}"
    FontSize="{StaticResource PhoneFontSizeNormal}"
    Foreground="{StaticResource PhoneForegroundBrush}"
    SupportedOrientations="Portrait" Orientation="Portrait"
    mc:Ignorable="d" d:DesignHeight="768" d:DesignWidth="480"
    shell:SystemTray.IsVisible="True">
    <ScrollViewer>
        <Grid>
            <Grid.Background>
                <ImageBrush ImageSource="/Win7RovMobileApp;component/Images/RoadBackground.png" Stretch="Fill" Opacity="0.6" />
            </Grid.Background>
            <Grid.RowDefinitions>
                <RowDefinition Height="Auto"/>
                <RowDefinition Height="Auto"/>
                <RowDefinition Height="Auto"/>
                <RowDefinition Height="Auto"/>
                <RowDefinition Height="Auto"/>
                <RowDefinition Height="Auto"/>
                <RowDefinition Height="Auto"/>
                <RowDefinition Height="Auto"/>
                <RowDefinition Height="Auto"/>
                <RowDefinition Height="Auto"/>
                <RowDefinition Height="Auto"/>
                <RowDefinition Height="Auto"/>
                <RowDefinition Height="Auto"/>
                <RowDefinition Height="Auto"/>
                <RowDefinition Height="Auto"/>
                <RowDefinition Height="Auto"/>
                <RowDefinition Height="Auto"/>
                <RowDefinition Height="Auto"/>
                <RowDefinition Height="Auto"/>
                <RowDefinition Height="Auto"/>
                <RowDefinition Height="Auto"/>
                <RowDefinition Height="Auto"/>
                <RowDefinition Height="Auto"/>
            </Grid.RowDefinitions>
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="Auto"/>
                <ColumnDefinition Width="*"/>
            </Grid.ColumnDefinitions>

            <TextBlock Text="Sumar comanda" VerticalAlignment="Center" TextAlignment="Center" FontWeight="Bold" FontSize="32" Margin="103,25,103,40" Grid.ColumnSpan="2">
                <TextBlock.Foreground>
                    <LinearGradientBrush EndPoint="1,0.5" StartPoint="0,0.5">
                        <GradientStop Color="#FFD40505" Offset="0" />
                        <GradientStop Color="#FFE8D000" Offset="0.523" /><GradientStop Color="#FF034FFC" Offset="1" />
                        
                    </LinearGradientBrush>
                </TextBlock.Foreground>
            </TextBlock>
            
            <!-- detalii optiuni rovigneta aleasa -->
            <TextBlock Grid.Row="1" Text="Rovigneta" VerticalAlignment="Center" FontWeight="Bold" FontSize="22" Margin="15">
                <TextBlock.Foreground>
                    <LinearGradientBrush EndPoint="1,0.5" StartPoint="0,0.5">
                        <GradientStop Color="#FFFCD700" Offset="0" />
                        <GradientStop Color="White" Offset="1" />
                        
                    </LinearGradientBrush>
                </TextBlock.Foreground>
            </TextBlock>
            <TextBlock Grid.Row="2" Grid.Column="1" Text="Numar inmatriculare" HorizontalAlignment="Center" VerticalAlignment="Center"/>
            <TextBox Grid.Row="3" Grid.Column="1" Margin="10,0" IsEnabled="False" Text="{Binding Path=VehiclePlate}"/>
            <TextBlock Grid.Row="4" Grid.Column="1" Text="Categoria" HorizontalAlignment="Center" VerticalAlignment="Center"/>
            <TextBox Grid.Row="5" Grid.Column="1" Margin="10,0" IsEnabled="False" Text="{Binding Path=VehicleType}" TextWrapping="Wrap" Height="100"/>
            <TextBlock Grid.Row="6" Grid.Column="1" Text="Valabilitate" HorizontalAlignment="Center" VerticalAlignment="Center"/>
            <TextBox Grid.Row="7" Grid.Column="1" Margin="10,0" IsEnabled="False" Text="{Binding Path=Valability}"/>
            <TextBlock Grid.Row="8" Grid.Column="1" Text="Data intrarii in vigoare" HorizontalAlignment="Center" VerticalAlignment="Center"/>
            <TextBox Grid.Row="9" Grid.Column="1" Margin="10,0" IsEnabled="False" Text="{Binding Path=ValabilityStartDate}"/>
            
            <!-- detalii facturare -->
            <TextBlock Grid.Row="10" Text="Facturare" VerticalAlignment="Center" FontWeight="Bold" FontSize="22" Margin="15" >
                <TextBlock.Foreground>
                    <LinearGradientBrush EndPoint="1,0.5" StartPoint="0,0.5">
                        <GradientStop Color="#FFFCD700" Offset="0" />
                        <GradientStop Color="White" Offset="1" />
                        
                    </LinearGradientBrush>
                </TextBlock.Foreground>
            </TextBlock>
            <TextBlock Grid.Row="11" Grid.Column="1" Text="Persoana" HorizontalAlignment="Center" VerticalAlignment="Center"/>
            <Grid Grid.Row="12" Grid.Column="1" Margin="10,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"/>
                    <ColumnDefinition Width="*"/>
                </Grid.ColumnDefinitions>
                <TextBox Grid.Column="0" IsEnabled="False" Text="{Binding Path=OwnerAlias}"/>
                <TextBox Grid.Column="1" IsEnabled="False" Text="{Binding Path=OwnerName}"/>
            </Grid>
            <TextBlock Grid.Row="13" Grid.Column="1" Text="Adresa" HorizontalAlignment="Center" VerticalAlignment="Center"/>
            <TextBox Grid.Row="14" Grid.Column="1" Margin="10,0" Height="200" IsEnabled="False" Text="{Binding Path=Adress}"/>
            <TextBlock Grid.Row="15" Grid.Column="1" Text="Telefon" HorizontalAlignment="Center" VerticalAlignment="Center"/>
            <TextBox Grid.Row="16" Grid.Column="1" Margin="10,0" IsEnabled="False" Text="{Binding Path=PhoneNumber}"/>
            <TextBlock Grid.Row="17" Grid.Column="1" Text="Email" HorizontalAlignment="Center" VerticalAlignment="Center"/>
            <TextBox Grid.Row="18" Grid.Column="1" Margin="10,0" IsEnabled="False" Text="{Binding Path=Email, Mode=TwoWay}"/>
            <TextBlock Grid.Row="19" Grid.Column="1" Text="Tip plata" HorizontalAlignment="Center" VerticalAlignment="Center"/>
            <TextBox Grid.Row="20" Grid.Column="1" Margin="10,0" IsEnabled="False" Text="{Binding Path=CardType}"/>
            
            <!-- total plata -->
            <TextBlock Grid.Row="21" Grid.Column="0" Text="Total plata" HorizontalAlignment="Center" VerticalAlignment="Center" FontSize="22" Foreground="Red" />
            <TextBox Grid.Row="21" Grid.Column="1" Margin="10,0" IsEnabled="False" Text="{Binding Path=TotalCosts}" TextAlignment="Center"/>
            
            <!-- OK ptr a plasa comanda -->
            <Button Grid.Row="22" Grid.Column="1" HorizontalAlignment="Right" Content="Plaseaza comanda" Name="OrderButton" Margin="10" BorderThickness="0.2" FontFamily="Comic Sans MS" Click="PlaceOrder_Click" Foreground="#FF0076FF" />

        </Grid>
    </ScrollViewer>

    <toolkit:TransitionService.NavigationInTransition>
        <toolkit:NavigationInTransition>
            <toolkit:NavigationInTransition.Backward>
                <toolkit:SwivelTransition Mode="BackwardIn"/>
            </toolkit:NavigationInTransition.Backward>
            <toolkit:NavigationInTransition.Forward>
                <toolkit:SwivelTransition Mode="ForwardIn"/>
            </toolkit:NavigationInTransition.Forward>
        </toolkit:NavigationInTransition>
    </toolkit:TransitionService.NavigationInTransition>
    <toolkit:TransitionService.NavigationOutTransition>
        <toolkit:NavigationOutTransition>
            <toolkit:NavigationOutTransition.Backward>
                <toolkit:SwivelTransition Mode="BackwardOut"/>
            </toolkit:NavigationOutTransition.Backward>
            <toolkit:NavigationOutTransition.Forward>
                <toolkit:SwivelTransition Mode="ForwardOut"/>
            </toolkit:NavigationOutTransition.Forward>
        </toolkit:NavigationOutTransition>
    </toolkit:TransitionService.NavigationOutTransition>
</phone:PhoneApplicationPage>
